home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / init.d / pppd-dns < prev    next >
Encoding:
Text File  |  2010-07-18  |  549 b   |  23 lines

  1. #!/bin/sh -e
  2. ### BEGIN INIT INFO
  3. # Provides:          pppd-dns
  4. # Required-Start:    $local_fs
  5. # Required-Stop:
  6. # Default-Start:     S
  7. # Default-Stop:
  8. # Short-Description: Restore resolv.conf if the system crashed.
  9. ### END INIT INFO
  10. #
  11. # Restore /etc/resolv.conf if the system crashed before the ppp link
  12. # was shut down.
  13.  
  14. case "$1" in
  15.   start) ;;
  16.   stop|restart|force-reload) exit 0 ;;
  17.   *) echo "Usage: $0 {start|stop|restart|force-reload}" >&2; exit 1 ;;
  18. esac
  19.  
  20. [ -x /etc/ppp/ip-down.d/0000usepeerdns ] \
  21.     && exec /etc/ppp/ip-down.d/0000usepeerdns
  22.  
  23.